package com.freesun.shop.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.freesun.shop.domin.ProdSolr;
import com.freesun.shop.entity.Prod;

import java.util.List;

/**
 * <p>
 * 商品 服务类
 * </p>
 *
 * @author zf
 * @since 2019-11-13
 */
public interface ProdService extends IService<Prod> {

    IPage<Prod> findByPage(Prod prod, Page<Prod> page);

    void bathDelete(List<Long> ids);

    /**
     * 商品的分页全量导入
     */

    IPage<ProdSolr> findProdSolrPage(ProdSolr prodSolr,Page<Prod> page);

    Prod getSimpleProd(Long prodId);
}
